package cn.yzgy.yzgyoa.finance.constrant;

import cn.yzgy.yzgyoa.common.report.ExcelGen;
import cn.yzgy.yzgyoa.common.report.ExcelGenColConfig;
import lombok.Getter;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

/**
 * 收支记录报表列
 *
 * @author Yqsen
 * @since 2020-10-16 09:13:32
 */
public class CapitalFinanceReportsColDef {

    @Getter
    private static final List<ExcelGenColConfig> COL_CONFIGS = new ArrayList<>();

    static {

        COL_CONFIGS.add(new ExcelGenColConfig().setTitleName("序号").setFieldName(ExcelGen.AUTOINCREMENT_COLUMN_IDENTIFIER).setColWidth(10));
        COL_CONFIGS.add(new ExcelGenColConfig().setTitleName("发生时间").setFieldName("createTime").setColWidth(20).setDataType(LocalDateTime.class.getName()));
        COL_CONFIGS.add(new ExcelGenColConfig().setTitleName("摘要").setFieldName("content").setColWidth(100));
        COL_CONFIGS.add(new ExcelGenColConfig().setTitleName("用途").setFieldName("capitalTypeToString").setColWidth(15));
        COL_CONFIGS.add(new ExcelGenColConfig().setTitleName("收入/支出").setFieldName("inOrOut").setColWidth(15));
        COL_CONFIGS.add(new ExcelGenColConfig().setTitleName("收/支金额").setFieldName("amountOfMoney").setColWidth(15).setDataType(BigDecimal.class.getName()));
        COL_CONFIGS.add(new ExcelGenColConfig().setTitleName("结算方式").setFieldName("accountTypeToString").setColWidth(15));
        COL_CONFIGS.add(new ExcelGenColConfig().setTitleName("资金渠道").setFieldName("sourceToString").setColWidth(20));
        COL_CONFIGS.add(new ExcelGenColConfig().setTitleName("渠道结余资金(元)").setFieldName("surplus").setColWidth(20));
        COL_CONFIGS.add(new ExcelGenColConfig().setTitleName("所有结余资金(元)").setFieldName("allSurplus").setColWidth(20));
        COL_CONFIGS.add(new ExcelGenColConfig().setTitleName("备注").setFieldName("comment").setColWidth(40));
        COL_CONFIGS.add(new ExcelGenColConfig().setTitleName("创建人").setFieldName("createName").setColWidth(15));
        COL_CONFIGS.add(new ExcelGenColConfig().setTitleName("修改人").setFieldName("updateName").setColWidth(40));
        COL_CONFIGS.add(new ExcelGenColConfig().setTitleName("修改时间").setFieldName("modifyTime").setColWidth(20).setDataType(LocalDateTime.class.getName()));

    }
}
